#ifndef MAIN_H
#define MAIN_H
#include "mbed.h"
#include "Joystick.h"
#include "N5110.h"  
#include "Utils.h"
#include "Rotary.h"
#include "buzzer.h"
#include "led.h"
#include <cstdint>
#include "mpu6050.h"
#include "gyro.h"
#include "Upcomp.h"


#include "screen.h"
#include "key.h"
#include "StickControl.h"
#include "math.h"
extern N5110 lcd;
extern Joystick joystick;
extern DigitalIn button1;
extern DigitalIn button2;
extern DigitalIn button3;


extern Ticker ticker;


extern uint16_t screen_slow,stick_slow,led_slow,gyro_slow,up_comp_slow;
extern uint16_t flag_ms,led_flag_ms,role_death_time,rgb_time;

void init(void);
void timer_isr(void);


#endif